﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MixScriptWeb.control;
using MixScriptWeb.Share;
using MixScript.BLL;
using MixScriptWeb.AppCode.gjips;
using MixScript.BLL.MM;
using MixScript.BLL.SD;
namespace MixScriptWeb.Jideco.MM
{
    public partial class fRPTStock : cCommonWeb2, IMIxCommon
    {
        private static string grnTyp;
        private static DataTable dtGrid;

        protected void Page_Load(object sender, EventArgs e)
        {

            try
            {

                mn = (MainMenu2)this.Master;
                hideStatusBar();
                if (!Page.IsPostBack)
                {
                    string[] sheadertext = new string[] { "Part No", "Part Name", "Date","IN", "Unit","Out","Unit" };
                    string[] sdatavalue = new string[] {"itno","itnm","ocdt","IN","uomin","out","uomout" };

                  
                    initGvColumn(gvdetail, sheadertext, sdatavalue);
                    MultiView1.SetActiveView(vwGR);
          
                }


            }
            catch (Exception ex)
            {

                throw ex;
            }
        }

        #region IMIxCommon Members

        public bool isvalid()
        {
            try
            {

                return true;
            }
            catch (Exception ex)
            {

                throw ex;
            }
            
        }

        #endregion
     
        protected void btnNext_Click(object sender, EventArgs e)
        {
            try
            {
               
              



            }
            catch (Exception ex)
            {

                ShowStatusBar(ex.Message);
            }
        }
        protected void imgDelete_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
               
            }
            catch (Exception ex)
            {

                ShowStatusBar(ex.Message);
            }
        }
        protected void gvdetail_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            try
            {
              
            }
            catch (Exception ex)
            {

                ShowStatusBar(ex.Message);
            }
        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                cStock oStock= new cStock();
                dtGrid=oStock.getStock(txtDate1.Text);
                gvdetail.DataSource = dtGrid;
                gvdetail.DataBind();


            }
            catch (Exception ex)
            {

                ShowStatusBar(ex.Message);
                //throw
            }
        }
    }
}